\hypertarget{classModel}{\section{Model类 参考}
\label{classModel}\index{Model@{Model}}
}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classModel_a39a87b4748dc7f5c7a70c95f0a9a427f}{\-\_\-\-\_\-construct} (\$\hyperlink{classModel_a3faeaf20245652160d32ec11c515dd00}{table}='', \$db\-Sign='master', \$config=array())
\item 
\hyperlink{classModel_a740f266bff6a614abd25c11530bdda3d}{\-\_\-\-\_\-get} (\$name)
\item 
\hyperlink{classModel_ae6acfbb7d5648a4e0145c4a0c31fb61a}{db} (\$sign= 'master', \$config=array())
\item 
\hyperlink{classModel_a3faeaf20245652160d32ec11c515dd00}{table} (\$table)
\item 
\hyperlink{classModel_ac3e012a63c86588bfcd731b5a8c328a2}{field} (\$field)
\item 
\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where} (\$where, \$compare= '=')
\item 
\hyperlink{classModel_afd64e812e584a5c1df42c01fc55a759d}{where\-\_\-or} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}, \$compare= '=')
\item 
\hyperlink{classModel_a091fcf8fdbf6f28db91268e7d5f73150}{set} (array \$data)
\item 
\hyperlink{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}{order} (\$order)
\item 
\hyperlink{classModel_a369d8acc9579950dd85a1ce4aa577a99}{limit} (\$list\-Num, \$offset=N\-U\-L\-L)
\item 
\hyperlink{classModel_a8e8fb6b3b560fb611c6d12d2867d8da7}{page} (\$page)
\item 
\hyperlink{classModel_ab473f2922cd7060433e7c8413d919354}{getlist} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L, \$\hyperlink{classModel_ac3e012a63c86588bfcd731b5a8c328a2}{field}=N\-U\-L\-L, \$\hyperlink{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}{order}=N\-U\-L\-L, \$current\-\_\-page=N\-U\-L\-L, \$list\-Num=N\-U\-L\-L, \$page\-Num=N\-U\-L\-L, \$urlrule=N\-U\-L\-L, \$maxpage=N\-U\-L\-L)
\item 
\hyperlink{classModel_a844c2ee4faada5bbac578b62adae9cee}{select} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L, \$\hyperlink{classModel_ac3e012a63c86588bfcd731b5a8c328a2}{field}=N\-U\-L\-L, \$\hyperlink{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}{order}=N\-U\-L\-L, \$\hyperlink{classModel_a369d8acc9579950dd85a1ce4aa577a99}{limit}=N\-U\-L\-L)
\item 
\hyperlink{classModel_a1487cf7bf91bd047da389d8655bffc15}{find} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L, \$\hyperlink{classModel_ac3e012a63c86588bfcd731b5a8c328a2}{field}=N\-U\-L\-L, \$\hyperlink{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}{order}=N\-U\-L\-L)
\item 
\hyperlink{classModel_abcda663635b18fa1cbe2ff7be5f20857}{count} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L)
\item 
\hyperlink{classModel_a45aee351cf855db8628e446601f4d991}{update} (\$data=N\-U\-L\-L, \$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L)
\item 
\hyperlink{classModel_a5534bd2589322bc8b47390e40f5a5543}{insert} (\$data=N\-U\-L\-L, \$return\-\_\-insert\-\_\-id=false, \$replace=false)
\item 
\hyperlink{classModel_aa63b14eda9a9aca878b2d5f23c472a04}{delete} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}=N\-U\-L\-L)
\item 
\hyperlink{classModel_af954d7753bc7f968ef9a73ce0c02bbb0}{query} (\$sql)
\item 
\hyperlink{classModel_a8f8757ff982eba8da7250f1eb1b342d9}{add\-\_\-special\-\_\-char} (\&\$value)
\item 
\hyperlink{classModel_ab4eaa9ac649a682f8046a951bb4ade83}{escape\-\_\-string} (\&\$value, \$quotation=1)
\item 
\hyperlink{classModel_a8ea8d45426e565fe134b5a6378642a68}{last\-\_\-sql} ()
\item 
\hyperlink{classModel_a8c05c472d8d3563583f335e8f3dd6d90}{sqls} (\$\hyperlink{classModel_af5dd829d032889a927edcd3dbd6d47d9}{where}, \$font= 'A\-N\-D ', \$compare= '=')
\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classModel_a62f67587e29b2aa93736f38c97c56c65}{{\bfseries \$table\-\_\-name} =''}\label{classModel_a62f67587e29b2aa93736f38c97c56c65}

\item 
\hypertarget{classModel_aa9dfaf85ba5f7f977cb537af1ce5b2b8}{{\bfseries \$cache} = null}\label{classModel_aa9dfaf85ba5f7f977cb537af1ce5b2b8}

\end{DoxyCompactItemize}
\subsection*{Protected 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classModel_a348093562fd01bcc977cc6659cf7b48f}{{\bfseries \$db}}\label{classModel_a348093562fd01bcc977cc6659cf7b48f}

\end{DoxyCompactItemize}


\subsection{详细描述}
模型类 \begin{DoxyAuthor}{作者}
七觞酒  \href{mailto:739800600@qq.com}{\tt 739800600@qq.\-com} 
\end{DoxyAuthor}
\begin{DoxyDate}{日期}
2013-\/3-\/20 
\end{DoxyDate}


\subsection{构造及析构函数说明}
\hypertarget{classModel_a39a87b4748dc7f5c7a70c95f0a9a427f}{\index{Model@{Model}!\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}}
\index{\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}!Model@{Model}}
\subsubsection[{\-\_\-\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::\-\_\-\-\_\-construct (
\begin{DoxyParamCaption}
\item[{}]{\$table = {\ttfamily ''}, }
\item[{}]{\$db\-Sign = {\ttfamily 'master'}, }
\item[{}]{\$config = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{classModel_a39a87b4748dc7f5c7a70c95f0a9a427f}
构造函数 
\begin{DoxyParams}[1]{参数}
string & {\em \$table} & 表名 \\
\hline
int | string & {\em \$db\-Sign} & 数据库唯一标识 \\
\hline
array & {\em \$config} & 数据库配置 \\
\hline
\end{DoxyParams}


\subsection{成员函数说明}
\hypertarget{classModel_a740f266bff6a614abd25c11530bdda3d}{\index{Model@{Model}!\-\_\-\-\_\-get@{\-\_\-\-\_\-get}}
\index{\-\_\-\-\_\-get@{\-\_\-\-\_\-get}!Model@{Model}}
\subsubsection[{\-\_\-\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::\-\_\-\-\_\-get (
\begin{DoxyParamCaption}
\item[{}]{\$name}
\end{DoxyParamCaption}
)}}\label{classModel_a740f266bff6a614abd25c11530bdda3d}
获取当前模型 的配置信息 访问数据的的配置信息 数据库表前缀 表名等 
\begin{DoxyParams}{参数}
{\em \$name} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
mixed 
\end{DoxyReturn}
\hypertarget{classModel_a8f8757ff982eba8da7250f1eb1b342d9}{\index{Model@{Model}!add\-\_\-special\-\_\-char@{add\-\_\-special\-\_\-char}}
\index{add\-\_\-special\-\_\-char@{add\-\_\-special\-\_\-char}!Model@{Model}}
\subsubsection[{add\-\_\-special\-\_\-char}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::add\-\_\-special\-\_\-char (
\begin{DoxyParamCaption}
\item[{\&}]{\$value}
\end{DoxyParamCaption}
)}}\label{classModel_a8f8757ff982eba8da7250f1eb1b342d9}
对字段两边加反引号，以保证数据库安全 
\begin{DoxyParams}{参数}
{\em \$value} & 数组值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
string 
\end{DoxyReturn}
\hypertarget{classModel_abcda663635b18fa1cbe2ff7be5f20857}{\index{Model@{Model}!count@{count}}
\index{count@{count}!Model@{Model}}
\subsubsection[{count}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::count (
\begin{DoxyParamCaption}
\item[{}]{\$where = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_abcda663635b18fa1cbe2ff7be5f20857}
查询数据条数 
\begin{DoxyParams}{参数}
{\em array} & or string 查询条件 可以是 数组 \\
\hline
\end{DoxyParams}
\hypertarget{classModel_ae6acfbb7d5648a4e0145c4a0c31fb61a}{\index{Model@{Model}!db@{db}}
\index{db@{db}!Model@{Model}}
\subsubsection[{db}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::db (
\begin{DoxyParamCaption}
\item[{}]{\$sign = {\ttfamily 'master'}, }
\item[{}]{\$config = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{classModel_ae6acfbb7d5648a4e0145c4a0c31fb61a}
设置数据库连接 切换数据库 
\begin{DoxyParams}[1]{参数}
int | string & {\em \$sign} & 数据库标识 \\
\hline
array & {\em \$config} & 数据库配置信息 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_aa63b14eda9a9aca878b2d5f23c472a04}{\index{Model@{Model}!delete@{delete}}
\index{delete@{delete}!Model@{Model}}
\subsubsection[{delete}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::delete (
\begin{DoxyParamCaption}
\item[{}]{\$where = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_aa63b14eda9a9aca878b2d5f23c472a04}
删除数据 
\begin{DoxyParams}{参数}
{\em string} & or array \$where 条件 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classModel_ab4eaa9ac649a682f8046a951bb4ade83}{\index{Model@{Model}!escape\-\_\-string@{escape\-\_\-string}}
\index{escape\-\_\-string@{escape\-\_\-string}!Model@{Model}}
\subsubsection[{escape\-\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::escape\-\_\-string (
\begin{DoxyParamCaption}
\item[{\&}]{\$value, }
\item[{}]{\$quotation = {\ttfamily 1}}
\end{DoxyParamCaption}
)}}\label{classModel_ab4eaa9ac649a682f8046a951bb4ade83}
对字段值两边加引号，以保证数据库安全 
\begin{DoxyParams}{参数}
{\em \$value} & 数组值 \\
\hline
{\em \$quotation} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
string 
\end{DoxyReturn}
\hypertarget{classModel_ac3e012a63c86588bfcd731b5a8c328a2}{\index{Model@{Model}!field@{field}}
\index{field@{field}!Model@{Model}}
\subsubsection[{field}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::field (
\begin{DoxyParamCaption}
\item[{}]{\$field}
\end{DoxyParamCaption}
)}}\label{classModel_ac3e012a63c86588bfcd731b5a8c328a2}
学则字段字段 
\begin{DoxyParams}[1]{参数}
string & {\em \$field} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_a1487cf7bf91bd047da389d8655bffc15}{\index{Model@{Model}!find@{find}}
\index{find@{find}!Model@{Model}}
\subsubsection[{find}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::find (
\begin{DoxyParamCaption}
\item[{}]{\$where = {\ttfamily NULL}, }
\item[{}]{\$field = {\ttfamily NULL}, }
\item[{}]{\$order = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_a1487cf7bf91bd047da389d8655bffc15}
单条查询 
\begin{DoxyParams}[1]{参数}
null & {\em \$where} & \\
\hline
null & {\em \$field} & \\
\hline
null & {\em \$order} & \\
\hline
\end{DoxyParams}
\hypertarget{classModel_ab473f2922cd7060433e7c8413d919354}{\index{Model@{Model}!getlist@{getlist}}
\index{getlist@{getlist}!Model@{Model}}
\subsubsection[{getlist}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::getlist (
\begin{DoxyParamCaption}
\item[{}]{\$where = {\ttfamily NULL}, }
\item[{}]{\$field = {\ttfamily NULL}, }
\item[{}]{\$order = {\ttfamily NULL}, }
\item[{}]{\$current\-\_\-page = {\ttfamily NULL}, }
\item[{}]{\$list\-Num = {\ttfamily NULL}, }
\item[{}]{\$page\-Num = {\ttfamily NULL}, }
\item[{}]{\$urlrule = {\ttfamily NULL}, }
\item[{}]{\$maxpage = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_ab473f2922cd7060433e7c8413d919354}
多条查询并分页 
\begin{DoxyParams}[1]{参数}
null & {\em \$where} & \\
\hline
string & {\em \$field} & 字段 \\
\hline
null & {\em \$order} & \\
\hline
int & {\em \$current\-\_\-page} & 当前页 \\
\hline
int & {\em \$list\-Num} & 每页显示条数 \\
\hline
int & {\em \$page\-Num} & 每页显示的 页码数 \\
\hline
string & {\em \$urlrule} & url 规则 \\
\hline
 & {\em \$maxpage} & 最多显示页数 \\
\hline
\end{DoxyParams}
\hypertarget{classModel_a5534bd2589322bc8b47390e40f5a5543}{\index{Model@{Model}!insert@{insert}}
\index{insert@{insert}!Model@{Model}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::insert (
\begin{DoxyParamCaption}
\item[{}]{\$data = {\ttfamily NULL}, }
\item[{}]{\$return\-\_\-insert\-\_\-id = {\ttfamily false}, }
\item[{}]{\$replace = {\ttfamily false}}
\end{DoxyParamCaption}
)}}\label{classModel_a5534bd2589322bc8b47390e40f5a5543}
插入数据 
\begin{DoxyParams}[1]{参数}
array & {\em \$data} & 要添加的数据 key 为字段名 value 为字段值 \\
\hline
bool & {\em \$return\-\_\-insert\-\_\-id} & 是否返回主键 号 \\
\hline
bool & {\em \$replace} & 是否 为替换插入 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classModel_a8ea8d45426e565fe134b5a6378642a68}{\index{Model@{Model}!last\-\_\-sql@{last\-\_\-sql}}
\index{last\-\_\-sql@{last\-\_\-sql}!Model@{Model}}
\subsubsection[{last\-\_\-sql}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::last\-\_\-sql (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classModel_a8ea8d45426e565fe134b5a6378642a68}
获取最后一次执行的sql 语句 \hypertarget{classModel_a369d8acc9579950dd85a1ce4aa577a99}{\index{Model@{Model}!limit@{limit}}
\index{limit@{limit}!Model@{Model}}
\subsubsection[{limit}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::limit (
\begin{DoxyParamCaption}
\item[{}]{\$list\-Num, }
\item[{}]{\$offset = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_a369d8acc9579950dd85a1ce4aa577a99}
limit 
\begin{DoxyParams}[1]{参数}
 & {\em \$list\-Num} & \\
\hline
null & {\em \$offset} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}{\index{Model@{Model}!order@{order}}
\index{order@{order}!Model@{Model}}
\subsubsection[{order}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::order (
\begin{DoxyParamCaption}
\item[{}]{\$order}
\end{DoxyParamCaption}
)}}\label{classModel_a8c3f0e0c0f25a9d2a86384ee69150563}
oder by 
\begin{DoxyParams}[1]{参数}
string & {\em \$order} & example id desc \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_a8e8fb6b3b560fb611c6d12d2867d8da7}{\index{Model@{Model}!page@{page}}
\index{page@{page}!Model@{Model}}
\subsubsection[{page}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::page (
\begin{DoxyParamCaption}
\item[{}]{\$page}
\end{DoxyParamCaption}
)}}\label{classModel_a8e8fb6b3b560fb611c6d12d2867d8da7}
分页设置 
\begin{DoxyParams}[1]{参数}
array & {\em \$page} & \$page\mbox{[}'total'\mbox{]} 总数 \$page\mbox{[}'list\-Num'\mbox{]} 每页显示条数 \$page\mbox{[}'current\-\_\-page'\mbox{]} 当前页 \$page\mbox{[}'page\-Num'\mbox{]} 每页显示的 页码数 \$page\mbox{[}'urlrule'\mbox{]} 分页 url 规则 \$page\mbox{[}'maxpage'\mbox{]} 最大页数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_af954d7753bc7f968ef9a73ce0c02bbb0}{\index{Model@{Model}!query@{query}}
\index{query@{query}!Model@{Model}}
\subsubsection[{query}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::query (
\begin{DoxyParamCaption}
\item[{}]{\$sql}
\end{DoxyParamCaption}
)}}\label{classModel_af954d7753bc7f968ef9a73ce0c02bbb0}
执行基本的 mysql查询 \hypertarget{classModel_a844c2ee4faada5bbac578b62adae9cee}{\index{Model@{Model}!select@{select}}
\index{select@{select}!Model@{Model}}
\subsubsection[{select}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::select (
\begin{DoxyParamCaption}
\item[{}]{\$where = {\ttfamily NULL}, }
\item[{}]{\$field = {\ttfamily NULL}, }
\item[{}]{\$order = {\ttfamily NULL}, }
\item[{}]{\$limit = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_a844c2ee4faada5bbac578b62adae9cee}
多条查询 
\begin{DoxyParams}[1]{参数}
null & {\em \$where} & \\
\hline
string & {\em \$field} & 字段 \\
\hline
null & {\em \$order} & \\
\hline
string & {\em \$limit} & 条数限制 \\
\hline
\end{DoxyParams}
\hypertarget{classModel_a091fcf8fdbf6f28db91268e7d5f73150}{\index{Model@{Model}!set@{set}}
\index{set@{set}!Model@{Model}}
\subsubsection[{set}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::set (
\begin{DoxyParamCaption}
\item[{array}]{\$data}
\end{DoxyParamCaption}
)}}\label{classModel_a091fcf8fdbf6f28db91268e7d5f73150}
给 update insert 赋值 
\begin{DoxyParams}[1]{参数}
array & {\em \$data} & \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{异常}
{\em \hyperlink{classAbnormal}{Abnormal}} & \\
\hline
\end{DoxyExceptions}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_a8c05c472d8d3563583f335e8f3dd6d90}{\index{Model@{Model}!sqls@{sqls}}
\index{sqls@{sqls}!Model@{Model}}
\subsubsection[{sqls}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::sqls (
\begin{DoxyParamCaption}
\item[{}]{\$where, }
\item[{}]{\$font = {\ttfamily '~AND~'}, }
\item[{}]{\$compare = {\ttfamily '='}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [final]}}}\label{classModel_a8c05c472d8d3563583f335e8f3dd6d90}
将数组转换为\-S\-Q\-L语句 
\begin{DoxyParams}[1]{参数}
array & {\em \$where} & 要生成的数组 \\
\hline
string & {\em \$font} & 连接串 \\
\hline
string & {\em \$compare} & 比较字符 (=,!=,in not in, like) \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{异常}
{\em \hyperlink{classAbnormal}{Abnormal}} & \\
\hline
\end{DoxyExceptions}
\hypertarget{classModel_a3faeaf20245652160d32ec11c515dd00}{\index{Model@{Model}!table@{table}}
\index{table@{table}!Model@{Model}}
\subsubsection[{table}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::table (
\begin{DoxyParamCaption}
\item[{}]{\$table}
\end{DoxyParamCaption}
)}}\label{classModel_a3faeaf20245652160d32ec11c515dd00}
设置操作数据表 此方法不建议使用 （使用 此方法 会改变 之前模型 的操作表） 
\begin{DoxyParams}[1]{参数}
string & {\em \$table} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_a45aee351cf855db8628e446601f4d991}{\index{Model@{Model}!update@{update}}
\index{update@{update}!Model@{Model}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::update (
\begin{DoxyParamCaption}
\item[{}]{\$data = {\ttfamily NULL}, }
\item[{}]{\$where = {\ttfamily NULL}}
\end{DoxyParamCaption}
)}}\label{classModel_a45aee351cf855db8628e446601f4d991}
修改数据 
\begin{DoxyParams}{参数}
{\em array} & or string \$data要修改的数据 字符串为 sql 语句 数组key 为字段名 value 为字段值 \\
\hline
{\em array} & or string \$where 条件语句 可为数组\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
bool 
\end{DoxyReturn}
\hypertarget{classModel_af5dd829d032889a927edcd3dbd6d47d9}{\index{Model@{Model}!where@{where}}
\index{where@{where}!Model@{Model}}
\subsubsection[{where}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::where (
\begin{DoxyParamCaption}
\item[{}]{\$where, }
\item[{}]{\$compare = {\ttfamily '='}}
\end{DoxyParamCaption}
)}}\label{classModel_af5dd829d032889a927edcd3dbd6d47d9}
where 条件 
\begin{DoxyParams}[1]{参数}
 & {\em array} & or string \$where\\
\hline
string & {\em \$compare} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}
\hypertarget{classModel_afd64e812e584a5c1df42c01fc55a759d}{\index{Model@{Model}!where\-\_\-or@{where\-\_\-or}}
\index{where\-\_\-or@{where\-\_\-or}!Model@{Model}}
\subsubsection[{where\-\_\-or}]{\setlength{\rightskip}{0pt plus 5cm}Model\-::where\-\_\-or (
\begin{DoxyParamCaption}
\item[{}]{\$where, }
\item[{}]{\$compare = {\ttfamily '='}}
\end{DoxyParamCaption}
)}}\label{classModel_afd64e812e584a5c1df42c01fc55a759d}
where 条件 
\begin{DoxyParams}[1]{参数}
 & {\em array} & or string \$where \\
\hline
string & {\em \$compare} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
\$this 
\end{DoxyReturn}


该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/Model.\-class.\-php\end{DoxyCompactItemize}
